// import com.alibaba.druid.sql.ast.expr.SQLCharExpr;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

#include "MySqlRaftLeaderTransferStatement.h"
#include "../../../../ast/expr/SQLCharExpr.h"
#include "../../../../ast/expr/SQLIntegerExpr.h"
#include "../../visitor/MySqlASTVisitor.h"

// @Override
void MySqlRaftLeaderTransferStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlRaftLeaderTransferStatement)))
  {
    acceptChild(visitor, shard);
    acceptChild(visitor, from);
    acceptChild(visitor, to);
    acceptChild(visitor, timeout);
  }
  visitor->endVisit(SharedObject(MySqlRaftLeaderTransferStatement));
}

SQLCharExpr_ptr MySqlRaftLeaderTransferStatement::getShard()
{
  return shard;
}

void MySqlRaftLeaderTransferStatement::setShard(SQLCharExpr_ptr shard)
{
  this->shard = shard;
}

SQLCharExpr_ptr MySqlRaftLeaderTransferStatement::getFrom()
{
  return from;
}

void MySqlRaftLeaderTransferStatement::setFrom(SQLCharExpr_ptr from)
{
  this->from = from;
}

SQLCharExpr_ptr MySqlRaftLeaderTransferStatement::getTo()
{
  return to;
}

void MySqlRaftLeaderTransferStatement::setTo(SQLCharExpr_ptr to)
{
  this->to = to;
}

SQLIntegerExpr_ptr MySqlRaftLeaderTransferStatement::getTimeout()
{
  return timeout;
}

void MySqlRaftLeaderTransferStatement::setTimeout(SQLIntegerExpr_ptr timeout)
{
  this->timeout = timeout;
}
